package com.ming_za.od_updater_sdk.event;

import com.ming_za.od_updater_sdk.obj.Res;

import java.util.List;
import java.util.Map;

public class UpdateStartEvent {

    /**
     * 需要更新的内容
     * <p>按版本顺序从小到大排序</p>
     */
    private final Map<Integer, List<Res>> needUpdate;

    /**
     * 是否取消更新
     */
    private boolean cancel = false;

    public UpdateStartEvent(Map<Integer, List<Res>> needUpdate) {
        this.needUpdate = needUpdate;
    }

    public Map<Integer, List<Res>> getNeedUpdate() {
        return needUpdate;
    }

    public void setCancel(boolean cancel) {
        this.cancel = cancel;
    }

    public boolean isCancel() {
        return cancel;
    }
}
